var a_content = document.getElementById("articles");
var articles = getElementsByAttr_r(a_content,"class","article");
for(var i = 0;i<articles.length;i++){
	var id = articles[i].id;
	if(typeof(id)!='undefined' && id != ''){
		var article = new vo.newObj({
			el:'#'+articles[i].id,
			datas:{
			},
			methods:{
				pic_more:function(){
					ajax({
						method:'GET',
						url:'article/pics/'+articles[i].id,
						success:function(response){
							var datas = response.datas;
							var pics = getElementsByAttr_r(this.el,"class","pics")[0];
							if(typeof(pics)!='undefined'){
								pics.innerHTML = '';
								for(var i = 0;i<datas.length;i++){
									pics.innerHTML +=("<img class='pic' vo-m='click:view_full' "+
									"rsrc='"+basepath+"f"+datas[i].path+"' src='"+basepath+datas[i].pathCmpr+"'/>");
								}
							}
						},
						error:function(){
							throw new Error("图片加载失败");
						}
					});
				},
				view_full:function(){
					var zm = document.getElementById("zm");
					zm.getElementsByTagName("img")[0].src=target().getAttribute("rsrc");
					zm.style.display="";
					document.getElementsByTagName("body")[0].setAttribute("style","overflow:hidden");
				}
			}
		});
	}
}